From: | Ray A. Akey |
Date: | 24 Apr 00 at 12:11:09 |
Subject: | Re: strdup() |
GURER OZEN <gozen@isbank.net.tr> wrote:
> RA> malloc(). This means that YOU must free the returned string (memory)
> RA> when you are done with it. Failure to do so will result in a memory
> RA> leak.
>
> This is not true. Memory will be automatically free()d at the exit.
malloc()
> keeps a list of allocated memory.
Correct. I was mistakenly referring to a code snippet I used to have which
used AllocVec(), which would result in the memory leak to which I was
referring. Thanks for the correction.
------------------------------------------------------------------------
You have a voice mail message waiting for you at iHello.com:
http://click.egroups.com/1/3555/1/_/451227/_/956574704/
------------------------------------------------------------------------